package com.xuebang.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;

import com.xuebang.admin.entity.HdPrepare;
import com.xuebang.admin.entity.OperatorRules;

public interface OperatorRulesMapper extends BaseMapper<OperatorRules> {

	@Select("select * from operator_rules")
	List<HdPrepare> search();

	@InsertProvider(type = SQLProvider.class, method = "insert")
	@SelectKey(statement = "select last_insert_id()", keyProperty = "ruleId", before = false, resultType = Long.class)
	void insertOperatorRules(OperatorRules operatorRules);
}
